<?php

defined('BASEPATH') OR exit('No direct script access allowed');

// Code here is run before frontend controllers
class UserStore_Controller extends MY_Controller {
    
    var $user_profile = FALSE;
    var $shop_info = FALSE;
    public function __construct() {
        parent::__construct();
        $admin_theme = Settings::get('user_backend_theme');
        $this->load->library('template', array(
            'theme_ub_id' => 1
                )
        );
        $this->load->model('users/users_m');
        $this->load->helper('users/user');
        $this->load->library('form_validation');
        $this->session->set_userdata('shop_name', $this->uri->segment(1));
        $this->user_profile = $this->users_m->get(array('username' => $this->uri->segment(1)));
        $this->shop_info = $this->users_m->get_shop_info($this->user_profile->estore_id);
    }

}
